module lang.d.sts.expressions.ddeleteexpression;

import lang.d.sts.expressions.dexpression;
import lang.d.visitors.dvisitor;

// What value should return delete expression?
class DDeleteExpression: DExpression {
    private DExpression myExpression;

    public this(DExpression expr) 
    in {
        assert(expr !is null);
    }
    body {
        myExpression = expr;
        expr.setParent(this);
    }

    public DExpression getExpression() {
        return myExpression;
    }

    override public void accept(DVisitor visitor) {
        visitor.visitDeleteExpression(this);
    }
}
